<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui"
      >

        <ui:composition template="./WEB-INF/includes-templates/template.xhtml">
            <ui:param name="pageTitle" value="#{trans.system_name}" />
            <ui:define name="content" >

                <h3>#{trans.yourAccount}</h3>
                <br />
                <h:form id="form1">

                    <h:panelGrid columns="2" columnClasses="column" cellpadding="5">  
                        <h:outputText value="#{trans.name}: " />  
                        <p:inplace id="name" >  
                            <p:inputText value="#{user.user.name}" />  
                        </p:inplace>  

                        <h:outputText value="#{trans.surname}: " />  
                        <p:inplace id="surname" >  
                            <p:inputText value="#{user.user.surname}" />  
                        </p:inplace> 

                        <h:outputText value="#{trans.email}: " />  
                        <p:inplace id="email" >  
                            <p:inputText value="#{user.user.mail}" />  
                        </p:inplace> 

                        <h:outputText value="#{trans.tel}: " />  
                        <p:inplace id="phone" >  
                            <p:inputMask value="#{user.user.phone}" mask="(+999) 999 999 999"/>

                        </p:inplace> 

                    </h:panelGrid>  
                    <br />

                    <p:commandButton type="submit" id="btn1" value="#{trans.b_save}" action="#{user.saveUser}" ajax="false"/>
                    
                    <h:inputText rendered="#{user.flag}" />
                    
                </h:form>
                <h:messages globalOnly="true" />

            </ui:define>
        </ui:composition>
</html>
